const app   = require('koa')(),
      argv  = require('yargs').argv,
      build = require('./server/init/build'),
      init  = require('./server/init/init');

global.DEVELOP = !!argv.dev;
const port = argv.port || 3000;

build();

init(app);

app.listen(port);

console.log(`http server running on port ${port}`) ;